package com.zhengxiang.onlinexamination.service;

import com.zhengxiang.onlinexamination.base.CacheConstants;
import com.zhengxiang.onlinexamination.entity.SysUser;

public interface SysPasswordService {
    /**
     * 登录账户密码错误次数缓存键名
     *
     * @param username 用户名
     * @return 缓存键key
     */
    public String getCacheKey(String username) ;

    public void validate(SysUser user);

    public boolean matches(SysUser user, String rawPassword);

    public void clearLoginRecordCache(String loginName);
}
